package com.duobaoyu.dby.supply.biz.client.resource;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.duobaoyu.dby.common.core.validator.ValidationList;
import com.duobaoyu.dby.supply.biz.client.resource.bean.dto.StateBatchDTO;
import com.duobaoyu.dby.supply.biz.client.resource.bean.dto.StateDTO;
import com.duobaoyu.dby.supply.biz.client.resource.bean.vo.MappingBatchVO;
import com.duobaoyu.dby.supply.biz.client.resource.bean.vo.MappingVO;
import com.duobaoyu.dby.supply.biz.client.resource.bean.vo.StateInfoVO;

import java.util.List;

/**
 * @author liyang
 * @version 1.0.0
 * @ClassName ResourceStateInfoAdminClient
 * @Description 状态映射admin client
 * @createTime 15:11:00 2023/10/08
 */
public interface ResourceStateInfoAdminClient {

    /**
     * 批量查询状态
     * @param stateBatchs
     * @return
     */
    List<MappingBatchVO> stateCodeList(ValidationList<StateBatchDTO> stateBatchs);

    boolean addStateInfo(StateDTO state);

    boolean updateStateInfo(StateDTO state);

    boolean deleteStateInfo(Long stateInfoId);

    StateInfoVO queryStateInfoDetail(Long stateInfoId);

    Page<StateInfoVO> queryStateInfoPage(StateDTO state);

    @Deprecated
    List<MappingVO> getStateInfoToLocalMappingCode(String stateCode, String label);
}
